import requests
import execjs

#
# headers = {
#     "Accept": "application/json, text/plain, */*",
#     "Accept-Language": "zh-CN,zh;q=0.9",
#     "Cache-Control": "no-cache",
#     "Connection": "keep-alive",
#     "Pragma": "no-cache",
#     "Referer": "https://jzsc.mohurd.gov.cn/data/company",
#     "Sec-Fetch-Dest": "empty",
#     "Sec-Fetch-Mode": "cors",
#     "Sec-Fetch-Site": "same-origin",
#     "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36",
#     "accessToken;": "",
#     "sec-ch-ua": "\"Chromium\";v=\"130\", \"Google Chrome\";v=\"130\", \"Not?A_Brand\";v=\"99\"",
#     "sec-ch-ua-mobile": "?0",
#     "sec-ch-ua-platform": "\"Windows\"",
#     "timeout": "30000",
#
# }
# cookies = {
#     "Hm_lvt_b1b4b9ea61b6f1627192160766a9c55c": "1731650444",
#     "HMACCOUNT": "AFD53293F7A60F46",
#     "Hm_lpvt_b1b4b9ea61b6f1627192160766a9c55c": "1731653860"
# }
# url = "https://jzsc.mohurd.gov.cn/APi/webApi/dataservice/query/comp/list"
# params = {
#     "pg": "2",
#     "pgsz": "15",
#     "total": "450"
# }
# response = requests.get(url, headers=headers, cookies=cookies, params=params)
#
# print(response.text)
# print(type(response.text))
# print(dir(response.text))


text = "95780ba0943730051dccb5fe3918f9fe1b6f2130681f99d5620c5497aa480f1310fdb4962281b9ace09547a673f1f7d09eba58b1a11139dd6706bbf80e88aec4cabb1bf120cd5377778927df5f44a1a95d7a822edb8f8b4eb338f1577f1e012c6398be6b875e4e8a16966d45314e08c52f138f562ebaea908412881d10f624ebcc5a90c3bea8604a09896434e231eedc9b42fe0dab769b79b90d7677b5cfc08ca632c0943f62d5b2a6800827e140f8bbf7c61ffa8214cd7b7e4747437260bc77d0a148310e440648bdc2662f3345c3b94d0acc06464e5fc7935ca82c85ad559981ca632ca6fa4fe99a4ace411e5e6eede53ec91cf035a6a2bbb37a74bb5faee7c815c608efd34f79ca0aa6f168fda779e73cd4f7a8220c165aab7efbf17ff3be955e7052c1152f83dd0c8afc7d0bef025648cbb1496549057d2e40bec3ab3ecce279ce97e990bf3ee81c95ddcf6ec63d33680e940248b84df3d55d7d0cbdddf14daedd96a6a276eb1f069b5a7cf91b61c842a88e26086cf71b24a30dd4cb1d276641e407827f095c6970e78ed2cfc950feeca3185f6fff823179408ef752db4fb94db716cfe532bdfd1c344ff261a40c67ebb0577e8cad4282bc4cb012a1b4dcbba050459b9e6de13182b8ed978d20c82adeb425efcb07bb83a6344e9a96320061395f204fa94aed6bb530a45530f4dbd39347d06ddf41a0403449f73cafc50b150cf2827fe21762e7166c16f3584a5407ece000e18d112a8af447e515fab852027059a8710fd2b61d0f5577faa6373daf334eee48677d1fbfe7c1170c732c554148111042c0ca973798461d7f26e085c5b908fad3aadc96d1854004bb8fd6666a221fb853bc7c5644715cd8954fd4feb52ce0c7ba53542302dd762f1c2633338860c28ff17d30234003ce0729df1e145a6c692c7481630628a6021ac678837bfbe7e44c8a8ef2da4f1ece0a3d4576e7e82d0b99462bb4ae80280dde50faf47b4f3eae74626560c14df65bd8567fafcf68a39fb34989916bf76b3bda9700d0871988ffff311caf109ffe875f982b2f73e03767ac9c485ee3df221175d064a0333ff3d79ca0e4f68d4d807f3422985c66817fc0cd10a0d38a3c0949cef0310d20b40bb25f4883d79f09d34f428cfdda76712fb2572ab013673fbca5da719f60e21902f9138a722a860f1c5f78f98ae73cc857cf7b0140356848d34471beca79d663cc3c71b67b3980777cddbf875c499ac11b5828b0fd42e6613be50afc09c81ae1a2746ac3b966804c5b6c16afd3db2b2ee4e78a8a0bb169554ef6ab0b321bec7d06a2bc3cb239f826e70368206787b7c6167c392067ae73ac9a29195a4ba30deb8b6aa3a219430c2caa09d7268ff092d0c0ca1a37af488ad1e2c872600caf885abd55e3c8666477f2638006ad56971180738970da51b02ae551ba0db6236822551779e9497dabdbba1dd9223896c9be72b7ce94d5c10db9aa302e62015c10fe406ff440d54d9dd01733601abbbffd5ca3d9a436b677d80838e484d31b592c0b4f8907b703165e0c19ea900f24b481091639f5f91762d631fd07e86fa1283e229567b89ab59bf3763086b464c8ca75b3f2dbb35c147b187a9a2bc00c98559d587f71f116480b9a9bf285fd930cfa37c4dc70ea5e9a0f25e9835fb5ab1d40a552712723fce06be2756398b127169cd41a92172719f20f0d0eede1fa6131da67b80ca696e931d40ea9355f7b2736918fe955c5d7f0e4e258227170d113323f7bc34f36676b766526a4020550872cd9423932c3ae9c1c54de36dc9c8a6d57d30c0780644e78f9a257bc5fc36c6010c039b65730e90cdfab3e6a90e689379a2941e1cdca6e072fe39618e883dcefc09bef5dd3e8dd1f1c0620c22a64d8d3612440534c426e7965d6e9e2ea8bd882efe2e15672456aea36959af1685f31b2ee3f32b66fe386d772c4a2cc49937af0464c4e3d1da045d15bfd7e1b8dd52657560aac74a3bf2b2f8a1a8ed65b3e249317bcb32f37e9984a38616c0f87a5653ee6f870103415e4a197b24a84c000a7c72723a99ab8b8bb1524293fbf10ac50352a72416f5ed8d15f42530a97ba9a736c0301bfbb8fa65ef85ce6d1abedf5ef59f86bc1cb2a69ac632e3880ac2b2585be53e8da8aac2a15a5d8546a6afd25f196ab6e346c70ffdb6806c9faf4e6699a05f49ec4a5f284b118d1cb7429ce92f24b8e39ef251052b99f615f20c348ba9186d58f358d355129690a62521fa857975aaa795183134b97247b3b3211f5a0cc57b57481ea16fd06aad2e08aea5ba3bcd6aa8caea0491abd968a89079f2d731623d3e441e95c15cd70824bb943e7348505a2b998272faeed90e7fad76515a657693347f8fb6cc8a9ce08852eafed792548febd54ecd25debd81c281d175d6ef798185bba95531b0283bc3d7ef6b8bcd6caeeeb453d73d99868c160e27381938a2698438bf1b0469739ba755b44a41a3252cc5579ac8b09d2592e5aaad9d02c87f2492c76a108c7386c37ddfa67dcda625af5cc6af3d6ade45d1ebcf258fc6d5808eb35040933a80c4a775614334f725be59949b6e2aca95c1d935a6f24228de3448160e7747bd58cfc8e65047d965233085bc67c3fc195c192df83c5dd0397bed43640602aa6140ab69e67ae2d715b25b2a60de43d6f795bc4513d206f9673f8269124fffbabaf44e437e21bf61648a07c2e8f20cc2923ba37fe5eec25f7cb337900afb40b9387579763d1498ebb67fda7b6d2f4cc391f80f5aea77b27356beae7b84b4002d39d6ef0d83eaea24592300538a4828782743a212a7850ae49db5ceebd5c73087a0e202aacd7f32f158d934226759b6053a05799980c8102d1ef203b1541cb98db4efba589d00435c0b347d1b0037997c352bb7c50b9d3c912eee9a2ad58383943a6dba5bd20f755634701b6d1837a28217bed106a98ee5d88526d2a9f48e54ce2fcabb67f088c0b0503ceca2f128f6e6d5e71069f567f2eefddf3e91e4efcb508619dd83e259168264e1e0c0bd1054031e4b750d1997a9135a644329bd8c0b70ae0de50837642f96e84963fa5119185cfb89a192ea39de31dfbb342de7eb118706feebf437a819ad1a9766a0ec5d472b7fc7ac897df96400fe1f492f6c875917bf3b8be11eb20c761de42821663e497522d5b78963bd9e1a8bc3cd9220d3ee3a5761f3aa4b18b0c6944aefafc5db324380387d088b54a1260e82e585c741a156219a807b9b0cf6bfa5d8807e7e6f453665dcf8f527cef9141e1528e89f8d96cfbfa76627718369870369f5d781896e4ac9a2ebd0ef21ebeb68641a2f6a366a60a3ed21f0640bff26b6cb4c4eca9bfb589a58e81b0c8190c7e47dfcd4e66446049438b2ff07179097cb952f4fc58517a6d575a234d7c3f6d45cccb4fc5f915f8b164d5bda547e55187493beae04d2570283778391a2fe4210a4539c4cde9257df201d66c8502157faec5b176c4347c1f4d4d7816aeb5231cd76a8a0990b061f979c9dee4ede374b7575c425392c9a8785ad2f7ed47d9f4ad1c8cb6e31405319a7850625904beb0211935d9b5eb71a00d5d2c858b6d2930f048ba1fff75a9b7be2b8e74214a2d9bebe94f4271e3c6339adbcad662f5f1316225899f9d220c42b0b273c4d2f808b8a02bf1e85f2bbdbced556fc45723c394dcf4ac6333c90be23898a109d7038366eb9e446e78e4c40251f5f771838a1bebe00967016e42b23c9c18a190c45ec2b25db122e90e41a3e4e7ed897a1fc40867bb344352e81b66812940e1b2c4f399985d8ef5691cfee3899c1f4dfd0583d556b9c7a3a763b40079cbf36b8f0a0333b1198c1c92693557c1f6508fc40a9830c272a5b32ce887be17e45834d02962418bc17b990e39dddc40832df7fb732acb96273818317cebbc77384df79b47975cdb44148ae6e57c4889696cbfd7c145a663c8cab598e8e305814afc56eedffc63032bef1a38d79a1a9d6e0db5bb7e15ca97047d93c6f92e7d597a118433699a881cf965832f9a857ada70a42c6e4938d8875b2172524925700ed68bac34ac674e96c4361ac2df9282a0ab898700972dc88f13875031025eb374c38c5bf2ecd4a354cc824f4fde64302bac2c3ec1518be6c16bfe20f56c0286af2b40a026322f426613889f5396a2b0a887a4e29353204fa6a099bfe32ec272426c493e7c5f9f67f7661cd476a27828a1b3945fa07850609e85d4719d2a756bcbfff90f97df743063c28154a58ca460d04d46d72eb4440dd85f626218c5b4baab9dc11ecb4eb2e03d00ba711cce1631771db3a974829145648e956e006b5d653d05bc3fe447deb26bc815d2c77118924a469f46c60542ae51859ecfce3c78c78d3108bddf4f613294b417c737142a8448ff4c99a1956fb7f115ea63a658445e78abbcb936fa32cd0da1c013f6ada7513cf5903df02029e78c1bafcf3d5c4cffe852611742f4747946b819c40db20e269d7fa421905393af95b91384b571da87f466d77e39a3a13c5dbe153ad8957ac4176de53c262ff9fe98c0f4bde05ade19837cda55ee592dcfb93e3c06d30a34e913aad7f3da6ec94a1f5ff5d09c3dd41e37a6f86e09c73cc681437e9fe29b1fad959cf51eaf85d4b6a1219f6650c90db31d0adc0c88d25f026b94bc5afdb67207588037cb6e2c43a51036a32bcdd6ac42c9090207c9708d77c583515f4ed8ba9bc0690878de04fb6dcdf34d1b56de31a93a96898e3a14ee05e0f26202e9532765a71c76af04b8a7662b0534fb36109bd5de05a370dadee4d651ee20634fc85c55b8b84f6e74690be2cef66475bd5efe54c788972e6aabed289eae123be28e8881b8be5f05b84c1b337bfd08aa758ce7962315e3129533cb9e502aa62416514710a8179a0e3ec594f0b2011b73a2fc9ba6da6db685487479a89ed4ca3b15b2e219bdb63f54b2c0efc8ac25287e1dec67eaa0df877075971ee6250bf85c8aa9768d7e06d5b6ee3cde6040e0ca9cfe96665488667259cf7070cff907fdaac7e7141c4ad38b1fb3c11bb24c4be5bc71fe890cf1bb22bf0337a4b7c29eed1fcaa796336b0132f37602a76b6483e5e759dde0fa644b9a669482d37f1a653c554baeedee0deec98d41de5dca0cfefa2b49a12d84e1a621631e21e008085854c8a3ece3efc18f607a00e3ef24df68f22f8bc49665792d60fd884ed826b38093cafdf7950fd9596c3289c79f2a3cac7c9ce5299d6556e84a78859551087d753cf0684015792dd6254c85e4eecfc028d8826912329baef5718cf859c46a7732783dc3f4cef29188fa986652fc0f5e17ccc7daa10c35fa2b4c3813f743c7c8b37efab91c1b45a1f83904cb717fd1373314ce43bb940b2feed17b9930af43c86bdfd0acbbc4add1f73baf1c10089e6db1313c03066d748b3c7a4d7d83ae08529fbdd251f2ecc1355054e8f91d50f0240be51ac8ee6a4aaf07669965addff847b3069e7d73cd4ef1ab109f30c9e4e70372c8eb2972e510deedec5a2c0b15bca2dbef847d515a972fa16dba8a4d50c842187d76839a03abe1c7f510ed3c46313f61d60e7b4a8af7a4a488ae8db69d58569e3db7c9869b749aa9ef58f49377878637338b8bdae63eaba3759e9ac0464ce0d270b010dcd0aa13c10be8cb992038db0f84985f036c47d9d3716d310fb11ae4d5d0b54aae448c7f94c540215303a3c7c2cac2844d3696575d3e4d5af786b80715f14af933c5cd21fc8e9e9df1d5f8fe4bd61c3eaa0dd2edc1c88647b53c1ede955cd695c48f298b3c37071db88e3b5ce41ba729ee7441961e9d36b6d5c55ea0dfb5d62e0d46bab7eaa845a6b59a8cb0cd5ada22af3e9a6fdf302ee7c69846c056ddbdec42044cf944c629a37eec2b152478315319ef55a99275bbacb01e7cdccc8bdbe0effa294fc670bf66691bef495cf80d802004af2db1cb5674a522f31124ff0b7ea3584a3646b4abf5c72eb5c461cd704687bc06ba4bd6219398557a582d71aebdcfe4fd30a769ed1f9fd448e729020ddbc30d154b61df64da3755520b89ec3a1ab03e950e1d6e31c63bcdf62c942596df9c98dee506335b8a0be597a4541f4ce4a2c7405e9e786362e8131166fa51952d4162f10abc674b388e9439ed87f5cfeb8e4f7acd23789bc78e8b85f42c69598814726605bace9a1ffe94856a42cd4042cdcc0444493b4137f8e587190072f3b8e8998f3187f85777dcbf17c3eb8d008ce286ecb68feb837dc42d263934706ca54ca5cb7fd7979df23c5650ac36a74b241b4d80f5178f7ef6cee7511d81a65ab9e3ad84e07b2561d57938353952255584588db3b021336316ae9dba3e0152924052eedaf04ba7942f16d61f8807f2cc11c9d1f6f0055b3ff4268dc64e93191097f4a861589242aa124b7d1061ec16eec9f69eea39337ccd35a7fe9767eca311a4acbc86d0a5"

# with open("jianzhu.js", "r") as f:
#     count = f.read()
#     js_code = execjs.compile(count)
#     print(js_code.call("b", text))

with open("jianzhu2.js", "r") as f:
    count = f.read()
    js_code = execjs.compile(count, cwd=r"D:\\python\\爬虫学习\\crawler-learning\\js逆向\node_project\node_modules")
    print(js_code.call("b", text))
